package com.yxw.live_vod_boot.dto;



import com.yxw.live_vod_boot.entity.YxLiveAppealEntity;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
//import lombok.EqualsAndHashCode;



/*** 
*@author Jiaxu.Huang
*@date 2023/12/11 16:42:50
*@update 2023/12/11 16:42:50
**/
@Data
//@EqualsAndHashCode(callSuper = true)
public class YxLiveAppealAddDTO   implements Serializable
{
    private static final long serialVersionUID = 21702284170776L;


    /**
    *店铺内部Id
    */
    @NotNull(message = "店铺内部Id不可为空")
    @ApiModelProperty(value = "店铺内部Id")
    private Long liveShopId;
    /**
    *申诉账号ID
    */
    @NotBlank(message = "申诉账号ID不可为空")
    @ApiModelProperty(value = "申诉账号ID")
    private String shopId;
    /**
    *商户名称
    */
    @NotBlank(message = "商户名称不可为空")
    @ApiModelProperty(value = "商户名称")
    private String merchantName;
    /**
    *申诉账号名称
    */
    @NotBlank(message = "申诉账号名称不可为空")
    @ApiModelProperty(value = "申诉账号名称")
    private String shopName;
    /**
    *申诉直播ID
    */
    @NotNull(message = "申诉直播ID不可为空")
    @ApiModelProperty(value = "申诉直播ID")
    private String liveId;
    /**
    *处罚id
    */
    @NotBlank(message = "处罚id不可为空")
    @ApiModelProperty(value = "处罚id")
    private String punishId;
    /**
    *违规原因
    */
    @NotBlank(message = "违规原因不可为空")
    @ApiModelProperty(value = "违规原因")
    private String violationReson;
    /**
    *申诉内容
    */
    @NotBlank(message = "申诉内容不可为空")
    @ApiModelProperty(value = "申诉内容")
    private String appealContent;
    /**
    *申诉图片
    */
    @ApiModelProperty(value = "申诉图片")
    private String pictureAppealUrl;
    /**
    *申诉人Id
    */
    @NotBlank(message = "申诉人Id不可为空")
    @ApiModelProperty(value = "申诉人Id")
    private String appealUserId;
    /**
    *申述人名称
    */
    @NotBlank(message = "申诉人名称不可为空")
    @ApiModelProperty(value = "申诉名称")
    private String appealUserName;
    /**
    *申诉时间
    */
    @ApiModelProperty(value = "申诉时间")
    private java.util.Date createTime;
    /**
    *处理申诉时间
    */
    @ApiModelProperty(value = "处理申诉时间")
    private java.util.Date updateTime;
    /**
    *将DTO转换为ENTITY
    */
    public YxLiveAppealEntity ConverToEntity()
    {
        YxLiveAppealEntity oYxLiveAppealEntity = new YxLiveAppealEntity ();
        oYxLiveAppealEntity.setLiveShopId(liveShopId) ;
        oYxLiveAppealEntity.setShopId(shopId) ;
        oYxLiveAppealEntity.setMerchantName(merchantName) ;
        oYxLiveAppealEntity.setShopName(shopName) ;
        oYxLiveAppealEntity.setLiveId(liveId) ;
        oYxLiveAppealEntity.setPunishId(punishId) ;
        oYxLiveAppealEntity.setViolationReson(violationReson) ;
        oYxLiveAppealEntity.setAppealContent(appealContent) ;
        oYxLiveAppealEntity.setPictureAppealUrl(pictureAppealUrl) ;
        oYxLiveAppealEntity.setAppealUserId(appealUserId) ;
        oYxLiveAppealEntity.setAppealUserName(appealUserName) ;
        oYxLiveAppealEntity.setCreateTime(createTime) ;
        oYxLiveAppealEntity.setUpdateTime(updateTime) ;
        return oYxLiveAppealEntity;
    }
}

